<script setup>
import useTodoStore from "@/store/modules/todo.js";
const todoStore = useTodoStore();

const detailInfo = inject("detailInfo");
const todoData = inject("todoData");

const props = defineProps({
  detailInfo: {
    type: Object,
  }
});

const formData = reactive({
  remark: null
})

const applyType = computed(()=> {
  return todoStore.getApplyType();
});

watch(formData, (newVal, oldVal) => {
  todoStore.setApproveData(newVal);
})

</script>

<template>

  <zcpf-form v-if="applyType=='ZCPF'"></zcpf-form>


  <el-form class="dialog-form-two" label-width="100">
    <el-row>
      <el-col :span="24">
        <el-form-item label="审批意见" prop="remark">
          <el-input type="textarea" v-model="todoData.remark" placeholder="请输入" />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="24">
        <el-form-item label="备注" prop="remark">
          <el-input disabled type="textarea" v-model="detailInfo.remark" placeholder="请输入" />
        </el-form-item>
      </el-col>
    </el-row>

  </el-form>

</template>

<style scoped lang="scss">

</style>